const { injectBabelPlugin } = require('react-app-rewired');
const path = require('path');
function resolve(dir) {
	return path.join(__dirname, '.', dir)
}

module.exports = function override(config, env) {
	// do stuff with the webpack config...
	config = injectBabelPlugin(['import', { libraryName: 'antd', libraryDirectory: 'es', style: 'css' }], config);
	config.resolve.alias = {
		'@': resolve('src'),
	}
	return config;
};